<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script>
    // 打印人的一声，从1岁到100岁
    var age = 1;
    while(age<=100){
        age++;
            console.log('今年你'+age+'岁了');
    }
    // 计算1到100之间的数字和
    var sum = 0;
    var num = 1;
    while(num<=100){
        sum = sum+ num;
        num++;
    }
    console.log(sum);
    // 查寝
    var temp = prompt('查寝了');
    while(temp != '学姐好'){
        temp = prompt('查寝了');
    }
    alert('水壶放好');
    </script>
</body>
</html>